package com.whx.managea.service.impl;

import com.whx.managea.dao.GroupDAO;
import com.whx.managea.entity.Group;
import com.whx.managea.service.GroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GroupServiceImpl implements GroupService {

    @Autowired
    private GroupDAO groupDAO;

    @Override
    public List<Group> findAll() {
        return groupDAO.findAll();
    }

    @Override
    public void save(Group group) {
        groupDAO.save(group);
    }

    @Override
    public List<Group> findByClazzId(String id) {
        return groupDAO.findByClazzId(id);
    }
}
